package com.github.common.exception;
/**
 * <p>User: Mu Yunlong
 * <p>Date: 2016年3月3日 下午4:34:59
 * <p>Version: 1.0
 */
public class BusinessException extends Exception{
    private static final long serialVersionUID = 1L;
    private String detailMsg = "";

    public BusinessException()
    {
    }

    public BusinessException(String code) {
      super(code);
    }

    public BusinessException(String code, String detailMsgParm) {
      super(code);
      this.detailMsg = detailMsgParm;
    }

    public BusinessException(Throwable cause) {
      super(cause);
    }

    public BusinessException(String code, Throwable cause) {
      super(code, cause);
    }

    public String getMessage() {
      return ExceptionCode.getMsgByCode(super.getMessage());
    }

    public String getDetailMsg() {
      return this.detailMsg;
    }

    public void setDetailMsg(String detailMsgParm) {
      this.detailMsg = detailMsgParm;
    }
}
